
function shaizi(x){
  var x;
  var y = 0;
  var y = Math.round(Math.random()*6*x);
  // console.log(y);
  if(y == 0){
    console.log(1);
  }else{
    console.log(y);
  }

}

shaizi(1);
shaizi(2);
